home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3g / gmatch.z / gmatch
Encoding:
Text File  |  2002-10-03  |  2.2 KB  |  65 lines

  1.  
  2.  
  3.  
  4. ggggmmmmaaaattttcccchhhh((((3333GGGG))))                                                          ggggmmmmaaaattttcccchhhh((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _gggg_mmmm_aaaa_tttt_cccc_hhhh - shell global pattern matching
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _cccc_cccc [_f_l_a_g _...._...._...._]]]] _f_i_l_e _...._...._.... _----_llll_gggg_eeee_nnnn [_l_i_b_r_a_r_y _...._...._...._]]]]
  13.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_llll_iiii_bbbb_gggg_eeee_nnnn_...._hhhh_>>>>
  14.      _iiii_nnnn_tttt _gggg_mmmm_aaaa_tttt_cccc_hhhh _((((_cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_ssss_tttt_rrrr_,,,, _cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_pppp_aaaa_tttt_tttt_eeee_rrrr_nnnn_))))_;;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _gggg_mmmm_aaaa_tttt_cccc_hhhh checks whether the null-terminated string _s_t_r matches the null-
  18.      terminated pattern string _p_a_t_t_e_r_n.  See the _ssss_hhhh(1) section ``File Name
  19.      Generation'' for a discussion of pattern matching.  _gggg_mmmm_aaaa_tttt_cccc_hhhh returns non-
  20.      zero if the pattern matches the string, zero if the pattern doesn't.  A
  21.      backslash (`_\\\\') is used as an escape character in pattern strings.
  22.  
  23. EEEEXXXXAAAAMMMMPPPPLLLLEEEE
  24.           char *s;
  25.           gmatch (s, "*[a\-]" )
  26.  
  27.  
  28.      _gggg_mmmm_aaaa_tttt_cccc_hhhh returns non-zero (true) for all strings with `_aaaa' or `_----' as their
  29.      last character.
  30.  
  31. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  32.      sh(1)
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.                                                                         PPPPaaaaggggeeee 1111
  61.  
  62.  
  63.  
  64.